import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:testlzhu/common/routers/app_routers.dart';
import 'package:testlzhu/page/login/login_view.dart';

import 'mingepage_logic.dart';

class MingepageWidget extends StatelessWidget {
  const MingepageWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final logic = Get.put(MingepageLogic());
    return  Scaffold(
      backgroundColor: Colors.blue,
      body: const Center(
        child: Text("登录"),
      ),
      floatingActionButton: FloatingActionButton(onPressed: (){
        // Get.to(const LoginWidget());

        Get.toNamed(AppRoutes.login);
        // Get.to(AppRoutes.Login);

      },child: const Icon(Icons.add),tooltip: '去登录',),
    );
  }
}
